import request from '../utils/request';
//仓库管理业务接口文档
const api = {
  // 分页查询物料规格列表
  GetPageGoodsSpecificationView(data?: any) {
    return request({
      url: '/api/Goods/GetPageGoodsSpecificationView',
      method: 'post',
      data,
    });
  },
  // 修改物料规格状态
  UpdateGoodsSpecificationState(data?: any) {
    return request({
      url: '/api/Goods/UpdateGoodsSpecificationState',
      method: 'post',
      data,
    });
  },
  // 物料-新增物料
  AddGoods(data?: any) {
    return request({
      url: '/api/Goods/AddGoods',
      method: 'post',
      data,
    });
  },
  // 物料-新增物料规格
  AddSpecification(data?: any) {
    return request({
      url: '/api/Goods/AddSpecification',
      method: 'post',
      data,
    });
  },
  //物料-更新物料
  UpdateGoods(data?: any) {
    return request({
      url: '/api/Goods/UpdateGoods',
      method: 'post',
      data,
    });
  },
  // 物料-物料删除
  DeleteGoods(data?: any) {
    return request({
      url: '/api/Goods/DeleteGoods',
      method: 'post',
      data,
    });
  },
  // 物料-禁用启用
  DisableGoods(data?: any) {
    return request({
      url: '/api/Goods/DisableGoods',
      method: 'post',
      data,
    });
  },
  // 物料-库存物料删除
  DeleteStockGoods(data?: any) {
    return request({
      url: '/api/Goods/DeleteStockGoods',
      method: 'post',
      data,
    });
  },
  // 物料-选择物料
  GetMatchGoods(data?: any) {
    return request({
      url: '/api/Goods/GetMatchGoods',
      method: 'post',
      data,
    });
  },
  // 获取物料详情
  GetGoodsSpecificationViewDetail(data?: any) {
    return request({
      url: '/api/Goods/GetGoodsSpecificationViewDetail',
      method: 'post',
      data,
    });
  },
  // 物料-分页列表
  GetMatchPageGoods(data?: any) {
    return request({
      url: '/api/Goods/GetMatchPageGoods',
      method: 'post',
      data,
    });
  },
  //分页获取物料库存列表数据
  GetPageStockGoodsDetailListView(data?: any) {
    return request({
      url: '/api/Goods/GetPageStockGoodsDetailListView',
      method: 'post',
      data,
    });
  },
};
export default api;
